import {defineStore} from 'pinia'
import { ref } from 'vue';
 const useCountStore =defineStore('Count',()=>{
    let sum=ref(6);
    function add(val:number){
      sum.value+=val;
    }
    function minus(val:number){
        sum.value-=val;
    }
    return {sum,add,minus};
 })
export default useCountStore;